package com.tancire.works.mapper;

import java.util.List;
import com.tancire.works.domain.SideWorkType;

/**
 * 兼职类型Mapper接口
 *
 * @author tancire
 * @date 2024-03-02
 */
public interface SideWorkTypeMapper {
    /**
     * 查询兼职类型
     *
     * @param id 兼职类型主键
     * @return 兼职类型
     */
    SideWorkType selectSideWorkTypeById(Long id);

    /**
     * 查询兼职类型列表
     *
     * @param sideWorkType 兼职类型
     * @return 兼职类型集合
     */
    List<SideWorkType> selectSideWorkTypeList(SideWorkType sideWorkType);

    /**
     * 新增兼职类型
     *
     * @param sideWorkType 兼职类型
     * @return 结果
     */
    int insertSideWorkType(SideWorkType sideWorkType);

    /**
     * 修改兼职类型
     *
     * @param sideWorkType 兼职类型
     * @return 结果
     */
    int updateSideWorkType(SideWorkType sideWorkType);

    /**
     * 删除兼职类型
     *
     * @param id 兼职类型主键
     * @return 结果
     */
    int deleteSideWorkTypeById(Long id);

    /**
     * 批量删除兼职类型
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deleteSideWorkTypeByIds(Long[] ids);
}
